package com.ctgu.A1_2;

import java.util.ArrayList;
import java.util.List;

public class College {
    private List<Building> buildingList;
    private List<Course> courseList;

    public College() {
        this.buildingList=new ArrayList<>();
        this.courseList=new ArrayList<>();
    }

    public College(List<Building> buildingList, List<Course> courseList) {
        this.buildingList = buildingList;
        this.courseList = courseList;
    }

    public void addBuilding(Building building)
    {
        buildingList.add(building);
    }
    public void addCourse(Course course){
        courseList.add(course);
    }

    public List<Building> getBuildingList() {
        return buildingList;
    }

    public void setBuildingList(List<Building> buildingList) {
        this.buildingList = buildingList;
    }

    public List<Course> getCourseList() {
        return courseList;
    }

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }
}
